home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 July / Disc 1 / PCU0703CD1.iso / software / online / files / imacros.exe / DEMO-DATASOURCE.IIM < prev    next >
Encoding:
Text File  |  2002-11-03  |  1.1 KB  |  18 lines

  1. VERSION BUILD=320028   
  2. 'This example macro uses the LOOP function and a datasource to submit several datasets to a website.
  3. 'For other ways to submit data to websites, please see the powerful "database-2-web.vbs" Windows script
  4. URL GOTO=http://www.iopus.com/iim/testform.html  
  5. ' The folling line is only a safeguard. If the macro is NOT started with a command line or script parameter
  6. ' it takes the datasource-loop.txt  as default value.
  7. '!LOOP is automatically replaced by the current value of the loop counter e.g 1,2,3,...
  8. CMDLINE !DATASOURCE datasource-loop.txt 
  9. ' Fill web form 
  10. 'Do not encrypt/decrypt given password
  11. SET !ENCRYPTION NO
  12. TAG TYPE=INPUT:TEXT FORM=NAME:TestForm2 ATTR=NAME:Name CONTENT={{title!LOOP}}
  13. TAG TYPE=TEXTAREA FORM=NAME:TestForm2 ATTR=NAME:Remarks CONTENT={{item!LOOP}}
  14. TAG POS=1 TYPE=INPUT:RADIO FORM=NAME:TestForm2 ATTR=NAME:Customer&&VALUE:Yes CONTENT=Yes 
  15. TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:TestForm2 ATTR=NAME:Reg_code CONTENT={{password}}
  16. ' Submit Data
  17. TAG TYPE=INPUT:SUBMIT FORM=NAME:TestForm2 ATTR=NAME:SendButton&&VALUE:Click<SP>to<SP>order<SP>now  
  18.